import Koa from 'koa';
import bodyParser from 'koa-bodyparser';
import router from './routers.js'
import cors  from './cors.js';

const app = new Koa();
app.use(cors());
app.use(bodyParser());
app.use(router);
app.listen(3000,()=>{
    console.log('http://localhost:3000');
});
